package com.jicheng.service;

import com.jicheng.Utils.ResultMess;
import com.jicheng.dto.file.UploadDto;
import com.jicheng.ext.util.ParamsValidator;
import org.springframework.web.multipart.MultipartFile;

import java.io.OutputStream;

public interface IFileService extends ParamsValidator {


    /**
     * 上传文件
     * @param file
     * @return
     */
    ResultMess uploadApp(MultipartFile file,String version,String comment);

    /**
     * 下载文件
     * @param path
     * @param servletOutputStream
     */
    ResultMess downloadApp(String path, OutputStream servletOutputStream);
}
